package main

import (
	_ "beego_learn/routers"
	"github.com/beego/beego/v2/adapter/orm"
	_ "github.com/go-sql-driver/mysql"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	connString := "dbUser:dbPassword@tcp(dbServerIP:port)/schema?charset=utf8&parseTime=True&loc=Asia%2FShanghai"
	_ = orm.RegisterDriver("mysql", orm.DRMySQL)
	_ = orm.RegisterDataBase("default", "mysql", connString)
}
func main() {
	beego.BConfig.RunMode = "dev"
	beego.Run()
}
